﻿#include<iostream>
using namespace std;

class A {
public:
    A(int a)
        :_a1(a)
        , _a2(_a1)
    {}
    void Print()
    {
        cout << _a1 << " " << _a2 << endl;
    }
private:
    int _a2;
    int _a1;
};


int main()
{
    //A aa(1);
    //aa.Print();
    //const char* p = "abcde";
    //int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
    //int* p = &arr[0];
    //int i = 0;
    //int sz = sizeof(arr) / sizeof(arr[0]);
    //cout << sz << endl;
    //while (p<arr+sz)
    //{
    //    cout << *p << endl;
    //    cout << p << endl;
    //    p++;
    //}
    int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
    int* p = &arr[0];
    int i = 0;
    int sz = sizeof(arr) / sizeof(arr[0]);
    while (p < arr + sz);
    {
        printf("%d ", *p);
        p++;
    }
   
    return 0;
}

//class A {
//public:
//	void func()
//	{
//		cout << "func" << endl;
//	}
//private:
//	long a1;//4
//	short a2;//2
//	int a3;//4
//	int* a4;//4
//};
//
//int main()
//{
//	A z;
//	long x;
//	short y;
//	int a = sizeof(A);
//	z::func();
//	cout<< a << endl;
//	return 0;
//}